// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router/router.js'

// 引用API文件
import api from './api/api.js'
// 引用utils工具方法
import utils from './utils/utils.js'

import 'bootstrap/dist/css/bootstrap.css'

import $ from 'jquery'

import bootjs from 'bootstrap/dist/js/bootstrap.js'

// 将API方法绑定到全局
Vue.prototype.$api = api
// 引用utils工具方法绑定全局
Vue.prototype.$utils = utils

Vue.prototype.$bootjs = bootjs

Vue.prototype.$ = $

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
